package com.zzyl.controller;


import com.zzyl.base.ResponseResult;
import com.zzyl.service.DeviceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "物联网iot-相关接口")
@RestController
@RequestMapping("/iot")
public class IotController {
      @Autowired
      DeviceService deviceService;
        /*
        * 从物联网平台同步产品列表
        * */
    @ApiOperation("从物联网平台同步产品列表")
    @PostMapping("/syncProjectList")
    public ResponseResult syncProjectList(){
        deviceService.syncProjectList();
        return ResponseResult.success();
    }
}
